﻿using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;

namespace Acme.BookStore2
{
    public interface IWorkScheduleRepository : IBasicRepository<WorkSchedule, Guid>
    {
        Task<List<WorkSchedule>> GetPagedListAsync(
            string sorting = null,
            int maxResultCount = int.MaxValue,
            int skipCount = 0,
            DateTime? creationTimeBegin = null,
            DateTime? creationTimeEnd = null,
            bool includeDetails = false,
            CancellationToken cancellationToken = default);

        Task<long> GetCountAsync(
            DateTime? creationTimeBegin = null,
            DateTime? creationTimeEnd = null,
            CancellationToken cancellationToken = default);
        
    }
}